//
//  GPCitySelectorVC.m
//  PFAmapDemo
//
//  Created by 原鹏飞 on 2018/11/1.
//  Copyright © 2018 ypf. All rights reserved.
//

#import "GPCitySelectorVC.h"

@interface GPCitySelectorVC ()

@property (nonatomic, strong) UIButton *exitBtn;

@end

@implementation GPCitySelectorVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self setupUI];
}


- (void)setupUI {
    self.view.backgroundColor = [UIColor whiteColor];
    
    // 添加退出按钮
    _exitBtn = [UIButton pf_buttonWithTitle:@"X" andTitleColor:[UIColor redColor] andBorderWidth:0.5f andBorderColor:[UIColor.redColor CGColor]];
    [_exitBtn addTarget:self action:@selector(clickExitBtn) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:_exitBtn];
    [_exitBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(50);
        make.left.equalTo(self.view).offset(20);
        make.height.width.mas_equalTo(44);
    }];
    
    // 添加搜索框
    
    
    // 添加
    
    
}


- (NSDictionary *)dictWithPlist {
    NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"area" ofType:@".plist"];
    return [NSDictionary dictionaryWithContentsOfFile:plistPath];
}


- (void)clickExitBtn {
    [self dismissViewControllerAnimated:YES completion:^{
        NSLog(@"退出城市选择页面");
    }];
}







/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
